package com.superlight.designer.wrapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.superlight.designer.entity.vo.PageVO;

public class PageWrapper{

    public static PageWrapper build() {
        return new PageWrapper();
    }

    public Page entityVO(PageVO entity) {
        Page target = new Page();
        target.setSize(entity.getSize());
        target.setCurrent(entity.getCurrent());
        target.setTotal(entity.getTotal());
        return target;
    }
}
